import { Link, Warning } from '@brillout/docpress'
import { ConfigSpec } from '../../components'

<ConfigSpec
  env="config (development & build-time)"
  isTypeOneLiner
>
`string {:ts}`
</ConfigSpec>

The `filesystemRoutingRoot` setting allows you to change the <Link href="/filesystem-routing">Filesystem Routing</Link> URL. It's usually used for <Link href="/file-structure">domain-driven file structure</Link>.

<Warning>Don't use `filesystemRoutingRoot` to change the Base URL, see <Link href="/base-url" /> instead.</Warning>

```ts
// /marketing/+config.ts

import type { Config } from 'vike/types'

export default {
  filesystemRoutingRoot: '/'
} satisfies Config
```

```yaml
PROJECT FILES                               URL
===============================             ======
/marketing/pages/index/+Page.js             /
/marketing/pages/about/+Page.js             /about
/marketing/pages/jobs/+Page.js              /jobs
```

## See also

- <Link href="/file-structure" />
- <Link href="/filesystem-routing" />
- <Link href="/base-url" />
- <Link href="/settings" />
